home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GIFLIB12.ARJ / MAKEFILE.TC < prev    next >
Text File  |  1991-06-15  |  2KB  |  64 lines

  1. #
  2. # This is the make file for the lib subdirectory of the GIF library
  3. # In order to run it tcc is assumed to be available, in addition to
  4. # tlib and obviously borland make.
  5. #
  6. # Usage: "make [-DMDL=model]" where model can be l (large) or c (compact) etc.
  7. # Note the MDL is optional with large model as default.
  8. #
  9. #                Gershon Elber, Jun 1989
  10. #
  11.  
  12.  
  13. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  14. .SWAP
  15.  
  16. # Your C compiler
  17. CC = tcc
  18.  
  19. # MDL set?
  20. !if !$d(MDL)
  21. MDL=l
  22. !endif
  23.  
  24. # Where all the include files are:
  25. INC = -I.
  26.  
  27. CFLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w -v- -y- -k- -N-
  28.  
  29. DEST = c:\tc\mylib
  30.  
  31. OBJS = dev2gif.obj egif_lib.obj dgif_lib.obj gif_hash.obj \
  32.     qprintf.obj gif_err.obj getarg.obj quantize.obj
  33. # Show me better way if you know one to prepare this line for TLIB:
  34. POBJS = +dev2gif.obj +egif_lib.obj +dgif_lib.obj +gif_hash.obj \
  35.     +qprintf.obj +gif_err.obj +getarg.obj +quantize.obj
  36.  
  37. # The {$< } is also new to TC++ 1.0 make - remove the { } pair if your make
  38. # choke on them (the { } signals batch mode that combines few operation at the
  39. # same time - very nice feature!).
  40. .c.obj:
  41.     $(CC) $(INC) $(CFLAGS) {$< }
  42.  
  43. gif_libl.lib: $(OBJS)
  44.     del gif_lib$(MDL).lib
  45.     tlib gif_lib$(MDL).lib @&&!
  46. $(POBJS), gif_lib$(MDL).lst
  47. !
  48.     copy gif_lib$(MDL).lib $(DEST)
  49.  
  50. dev2gif.obj: gif_lib.h
  51.  
  52. egif_lib.obj: gif_lib.h gif_hash.h
  53.  
  54. dgif_lib.obj: gif_lib.h gif_hash.h
  55.  
  56. gif_hash.obj: gif_lib.h gif_hash.h
  57.  
  58. qprintf.obj: gif_lib.h
  59.  
  60. gif_err.obj: gif_lib.h
  61.  
  62. getarg.obj: getarg.h
  63.  
  64.